#include <iostream>
#include <cstdlib>

int main() {
    std::cout << "Testing curl command..." << std::endl;
    
    // 测试 curl 命令是否工作
    int result = system("curl --version");
    if (result == 0) {
        std::cout << "✅ curl command works!" << std::endl;
    } else {
        std::cout << "❌ curl command failed" << std::endl;
    }
    
    // 测试 Gitee API 调用
    std::cout << "Testing Gitee API..." << std::endl;
    result = system("curl -s \"https://gitee.com/api/v5/repos/uesoft\"");
    if (result == 0) {
        std::cout << "✅ Gitee API accessible!" << std::endl;
    } else {
        std::cout << "❌ Gitee API failed" << std::endl;
    }
    
    return 0;
}
